﻿using System;

namespace Matrix.MaKaYunShang.Model
{
	/// <summary>
	/// Shops
	/// </summary>
    public class Shops
	{
        #region 默认属性
        /// <summary>
        /// 店铺ID
        /// </summary>		
        public int Id { get; set; }
        /// <summary>
        /// 店铺名
        /// </summary>		
        public string Name { get; set; }
        /// <summary>
        /// 店铺描述
        /// </summary>		
        public string Description { get; set; }
        /// <summary>
        /// 地区ID
        /// </summary>		
        public int AreaId { get; set; }
        /// <summary>
        /// 店铺地址
        /// </summary>		
        public string Address { get; set; }
        /// <summary>
        /// 是否开业 0 未开业 1 已开业
        /// </summary>		
        public int BusinessStatus { get; set; }
        /// <summary>
        /// 店铺关联的公众号二维码记录ID
        /// </summary>		
        public int WechatParamQrCodeId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>		
        public DateTime Created { get; set; }
        /// <summary>
        /// 创建者ACCOUNTID
        /// </summary>		
        public int CreatedBy { get; set; }
        /// <summary>
        /// 更新人员ID
        /// </summary>		
        public int UpdatedBy { get; set; }
        /// <summary>
        /// 经度
        /// </summary>		
        public string Longitude { get; set; }
        /// <summary>
        /// 纬度
        /// </summary>		
        public string Latitude { get; set; }
        /// <summary>
        /// 法人
        /// </summary>		
        public string LegalPerson { get; set; }
        /// <summary>
        /// 法人联系电话
        /// </summary>		
        public string LegalPersonMobile { get; set; }
        /// <summary>
        /// PostNumber
        /// </summary>		
        public string PostNumber { get; set; }
        /// <summary>
        /// 营业执照编号
        /// </summary>		
        public string BusinessLicenseNo { get; set; }
        /// <summary>
        /// 店铺LOGO
        /// </summary>		
        public string Logo { get; set; }
        /// <summary>
        /// 销量
        /// </summary>		
        public int SalesVolume { get; set; }
        /// <summary>
        /// 是否开启抢单模式
        /// </summary>		
        public bool IsOpenOrderGrab { get; set; }
        /// <summary>
        /// 店铺是否有效 FALSE 无效 TRUE有效
        /// </summary>		
        public bool Enabled { get; set; }
        /// <summary>
        /// 片区
        /// </summary>		
        public string SalesTerritory { get; set; }
        /// <summary>
        /// 市场
        /// </summary>		
        public string MarketAreaName { get; set; }
        /// <summary>
        /// 所属经销商
        /// </summary>		
        public string BelongDistributor { get; set; }
        /// <summary>
        /// 电话
        /// </summary>		
        public string Tel { get; set; }
        /// <summary>
        /// 行业ID
        /// </summary>		
        public int IndustryId { get; set; }
        /// <summary>
        /// 细分行业ID
        /// </summary>		
        public int SeparatedIndustryId { get; set; }
        /// <summary>
        /// 是否可发卡券
        /// </summary>		
        public bool CanSendCard { get; set; }
        /// <summary>
        /// 固定二维码
        /// </summary>		
        public string FixedQrCode { get; set; }
        /// <summary>
        /// 是否为总部
        /// </summary>		
        public bool IsHeadquarters { get; set; }
        /// <summary>
        /// 总部Id
        /// </summary>		
        public int ParentShopId { get; set; }
        /// <summary>
        /// FALSE 未激活 TRUE 已激活
        /// </summary>		
        public bool IsActive { get; set; }
        /// <summary>
        /// 前台是否可见
        /// </summary>		
        public bool CanFrontView { get; set; }
        /// <summary>
        /// 是否坐标转换
        /// </summary>		
        public bool IsCoordinateTransform { get; set; }
        /// <summary>
        /// 是否已删除（True已删除，False未删除）
        /// </summary>		
        public bool IsDelete { get; set; }
        #endregion
		
		#region 扩展属性

        public string IndustryName { get; set; }

	    /// <summary>
        /// 店铺销售数量
        /// </summary>
        public int ShopSalesQuantity { get; set; }

        /// <summary>
        /// 距离
        /// </summary>
	    public double Distance { get; set; }

        /// <summary>
        /// CloseTimeStart
        /// </summary>		
        public DateTime? CloseTimeStart { get; set; }
        /// <summary>
        /// CloseTimeEnd
        /// </summary>		
        public DateTime? CloseTimeEnd { get; set; }
        /// <summary>
        /// Updated
        /// </summary>		
        public DateTime? Updated { get; set; }

        /// <summary>
        /// 卡卷codeStr
        /// </summary>
	    public string CategoryCodeStr { get; set ; }
        public int ParentId { get; set; }

	    #endregion
	}
}